package upmc.fr.android.rss.view;

import android.content.Context;
import android.graphics.Color;
import android.widget.Button;
import android.widget.LinearLayout;


public class ListElementArticles  extends LinearLayout {

	private Button button;
	private String name;
	
	public ListElementArticles(Context context, String textButton) {
		super(context);
		
		name = textButton;
		setOrientation(HORIZONTAL);
	
		button = new Button(context);
		button.setText(textButton);
		button.setTextColor(Color.WHITE);
		button.setBackgroundResource(R.drawable.transpback);
	

		addView(button, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}

	public Button getButton() {
		return button;
	}

	public void setButton(Button button) {
		this.button = button;
	}

}